$OpenBSD: patch-sim_arm_armsupp_c,v 1.1 2017/05/13 19:07:05 espie Exp $

Index: sim/arm/armsupp.c
--- sim/arm/armsupp.c.orig
+++ sim/arm/armsupp.c
@@ -636,7 +636,7 @@ ARMul_MRC (ARMul_State * state, ARMword instr)
   if (! CP_ACCESS_ALLOWED (state, CPNum))
     {
       ARMul_UndefInstr (state, instr);
-      return;
+      return result;
     }
 
   cpab = (state->MRC[CPNum]) (state, ARMul_FIRST, instr, &result);
